#if !GENERATOR

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections.Generic;

using YF.OneNote;


namespace YF.OneNote.DataTypes
{
  public partial class ChildOELayout: NotesNode
  {
  
	public ChildOELayout()
    {
      
	}

    

	[XmlAttribute]
    public override string ID
    {
      get
      {
        return "!!!No ID!!!";
      }
      set
      {
      }
    }

	
    protected override bool UpdateContents(NotesNode newContent, List<INotesChange> changes)
    {
	  ChildOELayout item = (ChildOELayout)newContent;
      bool changed = false;

      
      if (listAlignment != item.listAlignment)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = listAlignmentField;
        propertyChange.NewValue = item.listAlignmentField;
        propertyChange.PropertyName = "listAlignment";
        changes.Add(propertyChange);

		
        listAlignmentField = item.listAlignmentField;
      }

      if (listSpacing != item.listSpacing)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = listSpacingField;
        propertyChange.NewValue = item.listSpacingField;
        propertyChange.PropertyName = "listSpacing";
        changes.Add(propertyChange);

		
        listSpacingField = item.listSpacingField;
      }

      if (spaceAfter != item.spaceAfter)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = spaceAfterField;
        propertyChange.NewValue = item.spaceAfterField;
        propertyChange.PropertyName = "spaceAfter";
        changes.Add(propertyChange);

		
        spaceAfterField = item.spaceAfterField;
      }

      if (spaceBefore != item.spaceBefore)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = spaceBeforeField;
        propertyChange.NewValue = item.spaceBeforeField;
        propertyChange.PropertyName = "spaceBefore";
        changes.Add(propertyChange);

		
        spaceBeforeField = item.spaceBeforeField;
      }

      if (spaceBetween != item.spaceBetween)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = spaceBetweenField;
        propertyChange.NewValue = item.spaceBetweenField;
        propertyChange.PropertyName = "spaceBetween";
        changes.Add(propertyChange);

		
        spaceBetweenField = item.spaceBetweenField;
      }


      return changed;
    }
  }
}

#endif